<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ActivityEdit.aspx.cs" Inherits="admin_ActivityEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" CausesValidation="False" PostBackUrl="~/admin/ActivityAdd.aspx"
            Text="Add New Activity" /><br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True"
            BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
            CellSpacing="1" DataSourceID="ActivitySQL" GridLines="None" ShowFooter="True" AllowSorting="True">
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <Columns>
                <asp:CommandField ShowEditButton="True" ShowSelectButton="True" />
            </Columns>
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        <asp:SqlDataSource ID="ActivitySQL" runat="server" ConnectionString="<%$ ConnectionStrings:edutaterConnectionString %>"
            SelectCommand="SELECT * FROM [activities] ORDER BY [title]"></asp:SqlDataSource>
        <br />
        <asp:ObjectDataSource ID="ActivityODS" runat="server" DataObjectTypeName="Com.Grubbland.Data.Objects.Activity"
            InsertMethod="AddActivity" SelectMethod="GetActivityList" TypeName="Com.Grubbland.Data.Access.ActivityServiceImpl"
            UpdateMethod="UpdateActivity"></asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
